package com.mimosa.common.system.log;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.mimosa.common.entity.BaseEntity;

@Entity
@Table(name = "T_LOG")
public class TLog extends BaseEntity {
	private String logTitle;
	private String logDesc;
	private String userId;
	private String state = LogState.SUCCESS.name();
	private String userName;

	public TLog(String logTitle, String logDesc, String userId, String userName) {
		super();
		this.logTitle = logTitle;
		this.logDesc = logDesc;
		this.userId = userId;
		this.userName = userName;
	}

	public TLog() {
	}

	public String getLogTitle() {
		return logTitle;
	}

	public void setLogTitle(String logTitle) {
		this.logTitle = logTitle;
	}

	public String getLogDesc() {
		return logDesc;
	}

	public void setLogDesc(String logDesc) {
		this.logDesc = logDesc;
	}

	public Date getCreateDate() {
		return this.getCreateTime();
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
}